package org.lds.logger.xml;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamImplicit;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class XMLRoot {

    @XStreamAlias("level")
    @XStreamAsAttribute
    private String level;

    @XStreamImplicit(itemFieldName="appenderRef")
    private List<XMLAppenderReference> XMLAppenderReferences;
}
